package com.leyou.search.serice;

import com.leyou.common.pojo.PageResult;
import com.leyou.pojo.Spu;
import com.leyou.search.pojo.Goods;
import com.leyou.search.pojo.SearchRequest;

import java.io.IOException;

public interface SearchService {
    Goods buildGoods(Spu spu) throws IOException;

    PageResult<Goods> search(SearchRequest request);

    void createIndex(Long id) throws IOException;

    void deleteIndex(Long id);
}
